MediaReceiver

interface MediaReceiver : Observable<T>

A media receiver to which media content can be cast.

Usually, a media receiver is a device that supports the ChromeCast technology but in Chromium's logic it can be even a wired display (HDMI, DVI, or similar).

Since

7.29

Functions

Link copied to clipboard
abstract fun name(): String
Returns the name of the receiver.
Link copied to clipboard
abstract fun <E : T?> on(eventClass: Class<E>, observer: Observer<E>): Subscription
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
abstract fun profile(): Profile
Returns the profile this receiver belongs to.
Link copied to clipboard
abstract fun state(): MediaReceiverState
Returns the current state of the receiver.
Link copied to clipboard
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription
inline fun <E : Event> Observable<in E>.subscribe(observer: Observer<E>): Subscription

Subscribes the given observer to receive events of type E from this Observable.

Link copied to clipboard
abstract fun supports(mediaSource: MediaSource): Boolean
Returns true if the receiver supports casting of mediaSource.